package cate.common.table.item;

import cate.common.table.ESheet;

public class HeroPartFreeCompositeSheet extends ESheet<HeroPartFreeCompositeRow> {
    @Override
    public String getSheetName() {
        return "万能碎片";
    }

    public HeroPartFreeCompositeRow chooseRowByTidAndRule(int tid, int rule) {
        for (HeroPartFreeCompositeRow row : list) {
            if (row.rule == rule && tid == row.fragmentId) {
                return row;
            }
        }
        return null;
    }
}
